﻿<div class="modal" data-name="INVOICES">

    <div class="modal-header">
        <h3>Редактирование документа</h3>
    </div>

    <div class="modal-body">

        <form name="INVOICES" class="form-horizontal" method="post"> 
            <fieldset> 

                <input type="hidden" name="GUID_RECORD" value="" />
                <input type="hidden" name="COMPANY_GUID" value="" />
                <input type="hidden" name="CUSTOMER_GUID" value="" />
                <input type="hidden" name="LOCATION_GUID" value="" />
                <input type="hidden" name="DOC_ID" value="" />
                <input type="hidden" name="VERSION" value="" />

                <div class="control-group"> 
                    <label class="control-label" for="CUSTOMER_NAME">Компания получатель</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="CUSTOMER_NAME" value="" readonly="readonly">
                    </div> 
                </div> 

                <div class="company-filter-group hide">
                    <div class="control-group"> 
                        <div class="controls">
                            <div class="input-append">
                                <input type="text" class="input-xlarge" name="COMPANY-FILTER" value="" placeholder="введите наименование компании" />
                                <button class="btn" type="button" data-action="COMPANY-FILTER"><i class="icon-filter"></i></button>
                            </div>
                        </div>
                    </div> 

                    <div class="control-group"> 
                        <div class="controls">
                            <div class="input-append">
                                <select class="input-xlarge" name="COMPANY_GUID-FILTER"></select>
                                <button class="btn" type="button" data-action="COMPANY-FILTER-APPLY"><i class="icon-ok"></i></button>
                            </div>
                        </div> 
                    </div> 
                </div>

                <div class="control-group"> 
                    <label class="control-label" for="LOCATION_NAME">Склад</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="LOCATION_NAME" value="" readonly="readonly">
                    </div> 
                </div>  

                <div class="location-filter-group hide">
                    <div class="control-group"> 
                        <div class="controls">
                            <div class="input-append">
                                <input type="text" class="input-xlarge" name="LOCATION-FILTER" value="" placeholder="введите наименование склада" />
                                <button class="btn" type="button" data-action="LOCATION-FILTER"><i class="icon-filter"></i></button>
                            </div>
                        </div>
                    </div> 

                    <div class="control-group"> 
                        <div class="controls">
                            <div class="input-append">
                                <select class="input-xlarge" name="LOCATION_GUID-FILTER"></select>
                                <button class="btn" type="button" data-action="LOCATION-FILTER-APPLY"><i class="icon-ok"></i></button>
                            </div>
                        </div> 
                    </div> 
                </div>

                <div class="control-group"> 
                    <label class="control-label" for="DOC_DATE">Дата документа</label>
                    <div class="controls">
                        <div id="dt1" class="input-append date" data-date="" data-date-format="dd.mm.yyyy">
                            <input type="text" class="input-xlarge" name="DOC_DATE" value="" placeholder="дд.мм.гггг" />
                            <span class="add-on"><i class="icon-th"></i></span>
                        </div>
                    </div> 
                </div> 

                <div class="control-group"> 
                    <label class="control-label" for="DOC_NUMBER">№ документа</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="DOC_NUMBER" value="" />
                    </div> 
                </div> 
                
                <div class="control-group"> 
                    <label class="control-label" for="TOTAL_AMOUNT">Итоговая сумма</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="TOTAL_AMOUNT" value="" />
                    </div>
                </div> 
                
                <div class="control-group"> 
                    <label class="control-label" for="TAX_AMOUNT">Сумма налога</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="TAX_AMOUNT" value="" />
                    </div>
                </div> 
                
                <div class="control-group"> 
                    <label class="control-label" for="NOTE">Примечание</label>
                    <div class="controls">
                        <textarea class="input-xlarge" name="NOTE"></textarea>
                    </div>
                </div> 

            </fieldset>
        </form>

    </div>

    <div class="modal-footer">
        <a href="#" class="btn btn-primary" data-action="INVOICE-SAVE">Сохранить</a>
        <a href="#" class="btn" data-dismiss="modal">Закрыть</a>
    </div>
</div>
